<%-- 
    Document   : add
    Created on : 12.12.2013, 23:33:24
    Author     : palo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><spring:message code="forest.add" /></title>
          
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/style.css" type="text/css" >   
    </head>
    <body>
        <div id="cele">
            <h1><span></span><c:out value="top.main" /></h1>       
            <jsp:include page="../menu.jsp" />
        
        <div id="obsah">       
                <form:form method="POST" modelAttribute="addedForest">
                    <fieldset>
                        <legend><spring:message code="forest.add" /></legend>
                        <table>
                            <tr>
                                <td>
                                    <form:label for="name" path="name">
                                        <spring:message code="forest.name" />:
                                    </form:label> 
                                </td>
                                <td>
                                    <form:input path="name" />
                                </td>
                                <td>
                                    <form:errors for="name" path="name" cssClass="error" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <form:label for="description" path="description">
                                        <spring:message code="forest.description" />:
                                    </form:label> 
                                </td>
                                <td>
                                    <form:input path="description" />
                                </td>
                                <td>
                                    <form:errors for="description" path="description" cssClass="description" />
                                </td>
                            </tr>
                            
                        </table>
                        <button><spring:message code="forest.create" /></button>
                    </fieldset>
                </form:form>
            <p>
                <a href="${pageContext.request.contextPath}/forest"><spring:message code="forest.all" /></a>
            </p>    
             </div>
             
                <jsp:include page="../footer.jsp" />
            

    </body>
</html>